function SpCapcha() {
	
    var _id;
    var _instance = this;
    var _util = Library.WebControl.Util;
    var _enable;
    var _src;    
    this.Init = function(clientName, id,src, enable){
        _globalHashObject.Add(clientName, _instance);
        window[clientName] = _instance;
        _id = id;     
        _src = src;   
        _enable = enable;        
    };
    this.Enable=function(){
			if (arguments.length > 0){
				_enable = arguments[0];
			}
			
			return _enable;
    };
		this.Visible=function(){
			var o = _util.GetObjectById(_id);
			if (arguments.length>0){
				o.style.display = arguments[0]? "":"none";
			}
			return o.style.display != "none";
		};
		
		this.Reload = function(p, onLoadComple) {
			var img = new Image();
			img.name = _id;
			var imgSrc = _src;			
			var d = new Date();
			if (imgSrc.indexOf('?') < 0) {
				imgSrc += '?dt='+d.getTime();
			} else {
				imgSrc += '&dt='+d.getTime();
			}
			if (p != "") {
				imgSrc += "&P=" + encodeURIComponent(p);
			}
			
			
			
			img.src = imgSrc + '';        
			img.onload = function () {				
				var wrap = _instance				   
				var image = _util.GetObjectById(_id);
				image.src = this.src;  
				if (typeof(onLoadComple) == "function") {
					onLoadComple(image, {});
				}
			}     

		};
};